<form id="mainform" action="<?=$url?>" method="GET" style="display:none">
	<input type="hidden" name="id" value="<?=$id?>">
	<input type="hidden" name="appid" value="<?=$appid?>">
	<input type="hidden" name="name" value="<?=$name?>">
	<input type="hidden" name="info" value="<?=$info?>">
</form>
<script>
if (<?=$binded?>) {
	var url=decodeURIComponent('<?=urlencode($default)?>');
	if (sessionStorage && sessionStorage.getItem('redirect')) {
		url=sessionStorage.getItem('redirect');
		sessionStorage.removeItem('redirect');
	}
	setTimeout(function(){
		window.location.href=url;
	},100);
} else {
	document.getElementById('mainform').submit();
}
</script>